﻿@model Seven.DataModel.ViewModels.RoleAbout.RoleModel


<script src="~/Scripts/views/Role/RoleForm.js" type="text/javascript"></script>

<form id="Role-Form" name="Role-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">角色信息</legend>
            @Html.HiddenFor(m => m.ID)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        名称：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Name)
                    </td>
                    <td class="TableLabel">
                        编号：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Code)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        排序号：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.SortNumber)
                    </td>
                    <td class="TableLabel">
                        图标：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Icon)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        所属公司：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.CompanyID)
                        <label style="vertical-align:middle;">@Model.CompanyName</label>&nbsp;<a id="select_company" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-edit',plain:true,content:'选择公司'"></a>
                    </td>
                    <td class="TableLabel">
                        禁用：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(model => model.IsDisabled, true) 是
                        @Html.RadioButtonFor(model => model.IsDisabled, false) 否
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        备注：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextAreaFor(model => model.Remark, new { style = "width:95%;" })
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {
        window.views.Role.RoleForm.initPage("Role-Form");
    });
</script>